interface IUser {
    id:number,
    name:string
}
// 声明的自定义数据格式
type usertype = IUser

function show(user:IUser){

}

function  show2(params:IUser[]) {
    
}

function  show3(params:Array<usertype>):usertype{
    return params[0]
}
// show({id:1,name:"xiaowang"})
show2([{id:1,name:"xiawan"}])

export {}